function loadVideo(playerUrl, autoplay) { 
swfobject.embedSWF( 
playerUrl + '&rel=0&fs=1&modestbranding=1&showinfo=0&iv_load_policy=3&theme=light&color=red&autoplay=' + 
(autoplay?1:0), 'player', '550', '380', '9.0.0', false, 
false, {allowfullscreen: 'true'}); 
} 
function showMyVideos2(data) { 
var feed = data.feed; 
var entries = feed.entry || []; 
var html = ['<ul class="videos">']; 
    for (var i = 0; i < entries.length; i++) { 
        var entry = entries[i]; 
        var title = entry.title.$t; //2011-01-16T15:05:56.000Z 
        var published = entry.published.$t; 
        var totalSeconds = entry.media$group.yt$duration.seconds; 
        var minutes = Math.floor(totalSeconds/60); 
        var seconds = totalSeconds % 60; 
        if(minutes<10) 
            minutes = "0" + minutes; 
        if(seconds<10) 
            seconds = "0" + seconds; 
        var duration = minutes + ":" + seconds; 
        var description = entry.media$group.media$description.$t; 
        var thumbnailUrl = entries[i].media$group.media$thumbnail[0].url; 
        thumbnailUrl = thumbnailUrl.replace("http","https"); 
        var playerUrl = entries[i].media$group.media$content[0].url; 
        html.push('<li><a href="javascript:loadVideo(\'', playerUrl, '\', true)" style="text-decoration:none"><img src="', 
            thumbnailUrl, '" width="100" height="85" /><label>', title, '<br />', 
            '<span><div id="video-time">',duration,'</div></span></label></a></li>'); 
    } 
html.push('</ul><br style="clear: left;"/>'); 
document.getElementById('videos2').innerHTML = html.join(''); 
if (entries.length > 0) { 
loadVideo(entries[0].media$group.media$content[0].url, false); 
} 
} 
